/* Responsive CSS Style */
@media only screen and (max-width: 1320px) {
  #back-top {
    left: auto;
    right: 8px;
    bottom: 8px;
    margin-left: auto;
  }
}

@media only screen and (max-width: 1139px) {
  .sidebar {
    display: none;
  }
  .content-wrapper {
    margin-right: 0;
  }
}

/* Smaller than standard 960 (devices and browsers) */
@media only screen and (max-width: 959px) {
  #primary {
    margin-top: 10px;
  }
  .content-wrapper {
    padding-left: 10px;
    padding-right: 10px;
  }
  #featured-slider,
  #featured-grid,
  .tab-wrap {
    margin-bottom: 10px;
  }
  .site-content {
    padding-bottom: 10px;
  }
  #secondary {
    display: none;
  }
  .footer-columns {
    display: none;
  }
}

/* Tablet Portrait size to standard 960 (devices and browsers) */
@media only screen and (min-width: 768px) and (max-width: 959px) {
  .site-footer {
    margin: 0 10px 0 200px;
  }
  #featured-grid .entry-meta,
  .popular-content .entry-meta,
  .related-content .entry-meta {
    display: none;
  }
}

/* All Mobile Sizes (devices and browser) */
@media only screen and (max-width: 767px) {
  .sf-menu {
    margin-bottom: 0 !important;
  }
  #primary-nav.phone_menu_col_1 ul li {
    width: 100%;
  }
  #primary-nav.phone_menu_col_2 ul li {
    width: 50%;
  }
  #primary-nav.phone_menu_col_3 ul li {
    width: 33.3333%;
  }
  #primary-nav.phone_menu_col_4 ul li {
    width: 25%;
  }
  #primary-nav.phone_menu_col_5 ul li {
    width: 20%;
  }
  #primary-nav.phone_menu_col_6 ul li {
    width: 16.6666%;
  }
  #primary-nav.phone_menu_col_7 ul li {
    width: 14.2857%;
  }
  #primary-nav.phone_menu_col_8 ul li {
    width: 12.5%;
  }
  .search-icon {
    display: block;
  }
  .header-search {
    line-height: 1;
    width: 230px;
    height: 38px;
    position: absolute;
    top: 60px;
    right: 10px;
    z-index: 999;
    background-color: #f5f5f5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 10px;
  }
  .header-search #searchform {
    position: relative;
  }
  .header-search:after {
    color: #999;
    font-family: 'Genericons';
    font-size: 20px;
    content: '\f400';
    position: absolute;
    top: 20px;
    left: 20px;
  }
  .header-search .search-input {
    background: #fff;
    border: 1px solid #e9e9e9;
    color: #333;
    font-size: 15px;
    width: 230px;
    height: 38px;
    padding-left: 32px;
    position: absolute;
    top: 0;
    left: 0;
  }
  .header-search .search-submit {
    background-color: #ffbe02;
    border: none;
    box-shadow: none;
    color: #fff;
    font-size: 14px;
    height: 38px;
    padding: 0;
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    text-align: center;
    text-transform: uppercase;
  }
  .left-col {
    position: static;
    width: 100%;
    line-height: 60px;
  }
  .site-branding {
    border-bottom: none;
    margin-bottom: 0;
    padding: 0 10px;
    z-index: 9999;
    position: relative;
    display: inline-block;
    text-align: left;
  }
  .site-branding #logo {
    height: 60px;
    padding: 0;
  }
  .site-branding img {
    max-height: 50px;
  }
  .site-title {
    text-align: left;
    padding: 0;
  }
  #primary-nav {
    padding: 7px 2%;
  }
  #primary-nav:after {
    clear: both;
    content: " ";
    display: block;
  }
  #primary-nav ul:after {
    clear: both;
    content: " ";
    display: block;
  }
  #primary-nav li {
    float: left;
  }
  #primary-nav li .fa {
    display: none !important;
  }
  #primary-nav li a,
  #primary-nav li.sfHover a,
  #primary-nav li a:hover {
    background: none;
    color: #fff;
    font-size: 15px;
    padding: 0;
  }
  #primary-nav li li {
    display: none !important;
  }
  #primary-nav li ul {
    width: 0;
    height: 0;
    display: none !important;
    visibility: hidden;
    overflow: hidden;
  }
  .content-wrapper {
    margin-left: 0;
  }
  .bx-controls-direction {
    display: none;
  }
  #featured-slider .entry-category {
    display: none;
  }
  #featured-grid ul li:last-child {
    padding-bottom: 20px;
  }
  .related-content ul li:last-child {
    padding-bottom: 0;
  }
  .popular-content .entry-meta {
    display: none;
  }
  .popular-content .post-num {
    float: left;
    position: relative;
    top: 3px;
  }
  .popular-content a {
    display: table;
  }
  .entry-related .post-num {
    top: 1px;
  }
  .single #primary .entry-author {
    display: none;
  }
  .single #primary .entry-footer .entry-tags {
    float: none;
  }
  .single #primary .entry-footer .entry-tags .tag-links span {
    display: none;
  }
  .single #primary .entry-footer .entry-footer-right {
    float: none;
    margin-top: 10px;
  }
  .custom-share:before {
    display: none;
  }
  .comment-form .comment-form-author,
  .comment-form .comment-form-email,
  .comment-form .comment-form-url {
    width: 100%;
  }
  .site-footer {
    margin: 0;
  }
  .footer-columns {
    display: none;
  }
  .error-404 .page-content .search-form input.search-field {
    width: 200px;
  }
}

/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
@media only screen and (min-width: 480px) and (max-width: 767px) {
  .content-list .thumbnail-link {
    width: 32%;
  }
  .content-list .entry-meta.first-line {
    display: none;
  }
  .content-list .entry-summary {
    font-size: 14px;
  }
}

/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
@media only screen and (max-width: 479px) {
  #primary {
    margin-top: 5px;
  }
  .content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  #featured-slider,
  #featured-grid,
  .tab-wrap {
    margin-bottom: 5px;
  }
  .site-content {
    padding-bottom: 5px;
  }
  .site-title {
    font-size: 24px;
  }
  .search-icon span span {
    display: none;
  }
  .slicknav_btn {
    margin-right: 50px;
  }
  #featured-slider .featured-slide .entry-header {
    padding: 10px;
  }
  #featured-slider .featured-slide .entry-title {
    font-size: 1.1em;
  }
  #featured-grid ul li,
  .related-content ul li {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
    padding-bottom: 15px;
  }
  #featured-grid ul li:last-child,
  .related-content ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
  #featured-grid ul li:after,
  .related-content ul li:after {
    clear: both;
    content: " ";
    display: block;
  }
  #featured-grid .ribbon,
  .related-content .ribbon {
    display: none !important;
    visibility: hidden;
  }
  #featured-grid .thumbnail-link,
  .related-content .thumbnail-link {
    margin: 0 15px 0 0;
    width: 32%;
    display: block;
    float: left;
    line-height: 0.8;
  }
  #featured-grid .thumbnail-link img,
  .related-content .thumbnail-link img {
    line-height: 0.8;
    margin-bottom: 0;
  }
  #featured-grid ul {
    padding: 10px 10px 0 10px;
  }
  #featured-grid .entry-header {
    line-height: 0.8;
  }
  #featured-grid .thumbnail-link {
    margin-right: 12px;
  }
  .single .site-main,
  #site-bottom {
    padding: 10px;
  }
  h2.section-title,
  .tab-titles,
  .popular-content .popular-loop,
  .breadcrumbs {
    padding-left: 10px;
    padding-right: 10px;
  }
  .content-grid {
    padding-left: 10px;
    padding-right: 10px;
  }
  .content-list .hentry {
    padding: 20px 10px;
  }
  .content-list .thumbnail-link {
    display: block;
    float: none;
    width: 100%;
    margin: 0 0 10px 0;
    max-width: 100%;
  }
  .content-list .thumbnail-link img {
    width: 100%;
  }
  .content-list .entry-title {
    font-size: 1em;
    margin-bottom: 10px;
  }
  .content-list .gallery-list {
    margin: 10px 0 10px 0;
  }
  .content-list .entry-meta.second-line .entry-category,
  .content-list .entry-meta.second-line .entry-like,
  .content-list .entry-meta.second-line .entry-comment {
    margin-left: 0;
    margin-right: 10px;
  }
  .entry-related .popular-loop {
    padding: 0;
  }
  .single .entry-header .entry-meta .bdsharebuttonbox,
  .author-box .avatar,
  .related-content .entry-meta {
    display: none;
  }
  .pagination .page-numbers {
    font-size: 13px;
    padding: 0 6px;
    height: 30px;
    line-height: 30px;
  }
  .page-title,
  .single h1.entry-title,
  .page h1.entry-title {
    font-size: 1.2em;
  }
  .single .gallery-slider li img {
    margin-bottom: 0;
  }
  .single .gallery-slider li .image-desc {
    background-color: #333;
    position: static;
    padding-left: 3%;
    padding-right: 3%;
    width: 94%;
  }
  .bx-wrapper .bx-controls-direction {
    display: none;
  }
  #comments .comment-metadata,
  .comment-respond .comment-metadata {
    display: none;
  }
}
